package com.ruoyi.business.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.mall.domain.BizClassify;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品列表对象 biz_goods
 * 
 * @author ruoyi
 * @date 2024-05-22
 */
@Data
public class BizGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long goodsId;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long tenantId;
    @Excel(name = "商户名称")
    private String tenantName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String title;

    /** 0:实物，1：卡券 */
    @Excel(name = "0:实物，1：卡券")
    private Long exchangeType;

    /** 兑换规格 */
    @Excel(name = "兑换数量")
    private String quantity;

    /** 类目ID */
    @Excel(name = "类目ID")
    private Long classifyId;
    private String classifyName;

    /** 社区ID */
    @Excel(name = "社区ID")
    private Long communityId;
    private String communityName;

    /** 消耗积分数 */
    @Excel(name = "消耗积分数")
    private Long exchangeNum;


    /** 库存数 */
    @Excel(name = "库存数")
    private Long stock;
    /**
     * 0:不限制,1:限制
     */
    private Integer stockType;
    /**
     * 已兑换
     */
    private Integer hasExchange;
    /**
     * 已领取
     */
    private Integer hasReceived;
    /**
     * 待领取
     */
    private Integer toReceived;
    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime startTime;

    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime endTime;

    /** 兑换地址 */
    @Excel(name = "兑换地址")
    private String exchangeAddress;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime exchangeStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime exchangeEndTime;
    /** 商品简介 */
    @Excel(name = "商品简介")
    private String descibe;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;

    /** 上下架（0代表上架 1代表下架） */
    @Excel(name = "上下架", readConverterExp = "0=代表上架,1=代表下架")
    private String status;

    /** 上下架（0:待审核 1:已审核） */
    @Excel(name = "上下架", readConverterExp = "0=:待审核,1=:已审核")
    private String audit;

    private Long sellerId;
    private String sellerName;
    private String originalPrice;
}